package com.fla.shapeevader.ui.drawers;

import android.graphics.Canvas;

import com.fla.shapeevader.model.BaseShape;

public abstract class BaseShapeDrawer {
    protected BaseShape shape;
    protected int color;

    public BaseShapeDrawer(BaseShape shape, int color) {
        this.shape = shape;
        this.color = color;
    }

    public void setSize(float fullWidth, float fullHeight) {
        shape.setSize(fullWidth, fullHeight);
    }

    public BaseShape getShape() {
        return shape;
    }

    public abstract boolean checkIntersection(BaseShapeDrawer otherShape);

    public abstract void drawOnCanvas(Canvas canvas);
}
